package com.mdinic.blogovi.front.page.blogpost;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.markup.html.WebMarkupContainer;

import com.mdinic.blogovi.model.BlogPost;

public class SingleBlogPostPanel extends BlogPostPanel {
    private static final long serialVersionUID = 1L;

    public SingleBlogPostPanel(BlogPost blogPost) {
        super(createList(blogPost), BlogPostPanelType.SINGLE);
        add(new WebMarkupContainer("filter"));
    }

    private static List<BlogPost> createList(BlogPost blogPost) {
        List<BlogPost> posts = new ArrayList<BlogPost>();
        posts.add(blogPost);
        return posts;
    }
}
